package com.aaa.ms.service;

import com.aaa.ms.service.impl.NewsServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

/**
 * @ fileName:NewsService
 * @ description:
 * @ author:zhz
 * @ createTime:2021/1/14 11:47
 */
@FeignClient(name = "salesService",fallback = NewsServiceFallback.class)
public interface NewsService {

    /**
     * 通过实体作为筛选条件查询
     *
     * @return 对象列表
     */
    @GetMapping("/news/queryAll")
    Map queryAll();
}
